package asteroids.model.programs.Expression;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public abstract class UnaryBooleanExpression extends BooleanExpression {

	public UnaryBooleanExpression(int line, int column,Expression e1) throws IllegalArgumentException{
		super(line, column);
		if(!canHaveAsExpression(e1))
			throw new IllegalArgumentException();
		this.e = (IBooleanExpression) e1;
	
	}
	
	private IBooleanExpression e;
	
	public IBooleanExpression getExpression(){
		return e;
	}

	public boolean canHaveAsExpression(Expression e) {
		return e instanceof IBooleanExpression;
	}
	

	

}
